n = int(input())
scores = list(map(int, input().split()))

max_score = max(scores)
min_score = min(scores)
average_score = sum(scores) / n

print("{:.1f}".format(max_score))
print("{:.1f}".format(min_score))
print("{:.1f}".format(average_score))

